home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_10_09 / 1009020a < prev    next >
Text File  |  1992-07-07  |  257b  |  21 lines

  1. // LISTING 1
  2.  
  3. #ifndef JMPSTACK_H
  4. #define JMPSTACK_H
  5.  
  6. #include <setjmp.h>
  7.  
  8. class JmpStack {
  9.     enum {SIZE=100};
  10.     jmp_buf stack[SIZE];
  11.     int current;
  12.  
  13. public:
  14.     JmpStack() {current = -1;}
  15.  
  16.     jmp_buf& operator++();    // push
  17.     jmp_buf& operator--();    // pop
  18. };
  19.  
  20. #endif
  21.